P_("Monitor"),
P_("The monitor the menu will be popped up on"),
-1, G_MAXINT, -1,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkMenu:reserve-toggle-size:
P_("Reserve Toggle Size"),
P_("A boolean that indicates whether the menu reserves space for toggles and icons"),
TRUE,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkMenu:horizontal-padding:
/**
* gtk_menu_set_active:
* @menu: a #GtkMenu
- * @index: the index of the menu item to select. Iindex values are
+ * @index: the index of the menu item to select. Index values are
* from 0 to n-1
*
* Selects the specified menu item within the menu. This is used by
g_object_ref (priv->old_active_menu_item);
}
}
+ g_object_notify (G_OBJECT (menu), "active");
}
/**
g_return_if_fail (GTK_IS_MENU (menu));
- priv->monitor_num = monitor_num;
+ if (priv->monitor_num != monitor_num)
+ {
+ priv->monitor_num = monitor_num;
+ g_object_notify (G_OBJECT (menu), "monitor");
+ }
}
/**